﻿(function () {
    oo('class', {
        prop: [
            { name: 'chooseCallback', isStatic: true }
        ],
        _category: null,
        init: function (data) {
            $('#divCategory').setTemplateElement('txtCategoryTemplate').processTemplate(data);
        },
        choose: function (id) {
            var callback;
            (callback = this.prop('chooseCallback')) && callback(id);
        }
    });
})();